  const center = {
    state: {
      access: '',
      user: sessionStorage.Uname || '',
      identity: sessionStorage.IdentityType || '',
      ChangeFlag: true
    },
    mutations: {
      changeUSER (state, value) {
        state.user = value
      },
      changeIdentity (state, value) {
        state.identity = value
      },
      // 改变flag
      ChangeFlag (state, value) {
        state.ChangeFlag = value
      }
    },
    actions: {
      changeUser ({ commit }, value) {
        commit('changeUSER', value)
      },
    changeIdentityType ({ commit }, value) {
      commit('changeIdentity', value)
    }

  }
}

export default center
